home *** CD-ROM | disk | FTP | other *** search
/ Gigarom 1 / Gigarom Macintosh Archives (Quantum Leap)(CDRM1080320)(1993).iso / FILES / HYP / C-D / DeveloperStax.cpt / Developer Stack 1.2r / card_7445.txt < prev    next >
Text File  |  1989-02-26  |  1KB  |  54 lines

  1. -- card: 7445 from stack: in.2r
  2. -- bmap block id: 0
  3. -- flags: 4000
  4. -- background id: 2612
  5. -- name: EnableMenu
  6.  
  7.  
  8. -- part contents for background part 13
  9. ----- text -----
  10. 10
  11.  
  12. -- part contents for background part 2
  13. ----- text -----
  14. EnableMenu
  15.  
  16. -- part contents for background part 3
  17. ----- text -----
  18.  
  19. EnableMenu lets you enable and disable items in menus you've created using the NewMenu* XFCN.  Examples:
  20.  
  21.   EnableMenu myMenu, 1, FALSE 
  22.   EnableMenu myMenu, 3, (the userLevel>2)
  23.  
  24. The first example will always disable the first menu item in the menu "myMenu".  The second example will disable the third item in "myMenu" IF the userLevel is greater than 2.
  25.  
  26. Passing an item number of 0 (zero) will enable or disable the ENTIRE menu.
  27.  
  28. •••
  29.  
  30. All the credit, (even the descriptions above) go to the creator of this ingenious XCMD:
  31.  
  32. Nine to Five Software Company
  33. P.O. Box 915
  34. Greenwood, IN  46142
  35. (317) 887-2154
  36. & Michael Long
  37.  
  38. See also NewMenu*, CheckMenu*, DeleteMenu*,  ChangeMenu*, and ShowMenu*
  39.  
  40.  
  41. -- part contents for background part 10
  42. ----- text -----
  43. Syntax:
  44.  
  45. EnableMenu <menuNumber>,
  46. <itemNumber>,TRUE/FALSE
  47.  
  48. <menuNumber> is the id number of the menu returned by the call to newMenu.
  49.  
  50. <itemNumber> is this menu item 
  51. (counting from the top with the 0 being the item name.)
  52.  
  53. The third parameter passed will either enable or diable the item.
  54.